
   
        <?php if ($model->quoteorg != NULL): ?>
            <li><a  class="return-button" href="index.php?r=invoices/update&invoice=<?= $model->quoteorg ?>">Back To Quote</a></li>
        <?php endif ?>
<?php
    if ($model->jobnumber != null)
    {
        echo '<li>';
        echo CHtml::link('Go to Job', array('/jobs/update', 'jobid' => $model->jobnumber), array('class' => 'return-button'));
        echo '</li>';
    }
?>
<?php
    if ($model->agreementno != null)
    {
        echo '<li>';
        echo CHtml::link('Back to Contract', array('/contracts/update', 'contractid' => $model->agreementno), array('class' => 'return-button'));
        echo '</li>';
    }
?>
        <li><a class="view-button" href="index.php?r=invoices/update&invoice=<?= $model->getInvoiceModel()->invoice ?>">View Invoice</a></li>
     
            
        
<br/><h5 style="padding-left:11px;"> Delivery</h5> 
        <li><a  class="print-button"  href="javascript:void(0)" onclick="printNormal(false);">View/Print</a></li>
        
        <li><a class="print-button"  href="javascript:void(0)" onclick="printWithAck(false);">View/Print with Ack</a></li>
        
        <li><a  class="print-button"  href="javascript:void(0)" onclick="printPackingList(false);">View/Print Packing List</a></li>

